package com.gupaoedu.vip.pattern.strategy;

/**
 * Created by Administrator on 2018/3/19.
 */
public enum PayType {

    ALI_PAY(new AliPay()),
    WEBCHAT_PAY(new WeChatPay());

    private IPay pay;
    PayType(IPay pay){
        this.pay=pay;
    }

    public IPay get() {
        return pay;
    }

}
